home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: metropolis.nl!ppp0-131
- From: mindmelt@metropolis.nl (mindmelt)
- Subject: far pointer question
- X-Nntp-Posting-Host: ppp0-131.metropolis.nl
- Message-ID: <DMD8wB.4IF@news.metropolis.nl>
- Sender: news@news.metropolis.nl (usenet)
- Organization: mindmelt
- X-Newsreader: News Xpress Version 1.0 Beta #3
- Date: Tue, 6 Feb 1996 20:02:01 GMT
-
-
- Hi,
-
- I'm coding a program that needs a pointer to the text video ram (b800:0000).
- The question is: how do I make a global, constant far variable that points to
- this segment address? I use Watcom C/C++, my program is in C++ and I use a
- small memory model. The weird thing is that when I tried it in C it worked
- allright: char far *ptr = MK_FP( 0xb800, 0x0000 ), but then when I wrote it in
- C++ it gave a compile-time error.
-
- Could anyone help me out?
-
- Please reply directly to my email address.
-
- Thanks!
-
- Manuel
-